<?php

/*
 * Victory - Shelter
 *
 * 0 vp
 * When you trash this, +1 Card.
 */

class OvergrownEstate extends Card implements iDarkAges, iVictory, iShelter {

    public function __construct() {
        parent::__construct("Overgrown Estate", 1);
        $this->victoryPoints = 0;
        $this->undoPlay = false;
        $this->undoBuy = false;
    }

    public function getDescription() {
        return array(
            "Worth 0 victory points",
            "When you trash this, +1 Card.");
    }

    public function trash(Game $game, $name) {
        $drawed_cards = $game->drawCards(1, $name);
        ScreenDisplay::addScreenMessage($game, true, "draw  " . nicePrint($drawed_cards), "draws " . sizeof($drawed_cards) . " cards", $name);
        $game->setTempCard($this);
        $game->cardTrashFinished($name);
    }

    public function play(Game $game, $isRealCard) {
        return true;
    }

}

?>